/*
 * All rights Reserved, Designed By cloudland Copyright(C) 2010-2014
 *
 * fileName:  JsonResolve.java
 * author:  lei
 * Company:  Cloudland Studio
 * Createdate:  2013-9-15 上午8:57:40
 *   
 * Modification  History:
 *     Date           Author        Version        
 * -------------------------------------------
 * 2013-9-15          Lei            1.0        
 *
 * Why & What is modified:
 * 1.0: 文件创建
 */
package org.cloudland.util;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

 /**
 * <pre> 
 * TODO 请充分描述该类提供的作用, 或与其他类会有关联的使用。
 * 使用 java.lang.Object#toString(), 或者 {@link java.lang.Character Character} 等标签
 * </pre>
 * @ClassName  JsonResolve
 * @author  lei
 * @version  %I%, %G%
 * @see  
 * @since   JDK1.6
 *
 */
public class JsonResolve {

	public static String toJson(Object obj)
    {
        return JSON.toJSONString(obj, SerializerFeature.BrowserCompatible);
    }
	
	public static Object parse(String json)
    {
        return JSON.parse(json);
    }
}
